<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改用户提现申请')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-userWithdraw-edit" th:object="${webUserWithdraw}">
            <h4 class="form-header h4">用户提现申请信息</h4>
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">提现用户：</label>
                <div class="col-sm-8 form-control-static" th:text="${user.realname}">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">提现金额：</label>
                <div class="col-sm-8 form-control-static" th:text="*{amount/100}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">身份证号：</label>
                <div class="col-sm-8 form-control-static" th:text="*{idcard}">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">提现方式：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('bind_type')}">
                        <input disabled type="radio" th:id="${'bindType_' + dict.dictCode}" name="bindType" th:value="${dict.dictValue}" th:field="*{bindType}" required>
                        <label th:for="${'bindType_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">开户银行：</label>
                <div class="col-sm-8 form-control-static" th:text="*{bankType}">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">开户行账号：</label>
                <div class="col-sm-8 form-control-static" th:text="*{bankNo}">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支付宝账号：</label>
                <div class="col-sm-8 form-control-static" th:text="*{alipayNo}">
                    <!--<input name="alipayNo" th:field="*{alipayNo}" class="form-control" type="text">-->
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('withdrawType')}">
                        <input type="radio" th:id="${'withdrawType_' + dict.dictCode}" name="realAuth" th:value="${dict.dictValue}" th:field="*{status}" required>
                        <label th:for="${'withdrawType_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">打款时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="remitTime" th:value="${#dates.format(webUserWithdraw.remitTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">打款流水号：</label>
                <div class="col-sm-8">
                    <input name="serialNumber" th:field="*{serialNumber}" class="form-control" type="text">
                </div>
            </div>


        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/userWithdraw";
        var userTypeDatas = [[${@dict.getType('web_user_type')}]];
        var statusDatas = [[${@dict.getType('sys_normal_disable')}]];
        var realAuthDatas = [[${@dict.getType('auth_status')}]];
        $("#form-userWithdraw-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-userWithdraw-edit').serialize());
            }
        }

        $("input[name='remitTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

    </script>
</body>
</html>